package com.jiyun.vo;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class Result {
    private Integer code;
    private String message;
    private Object data;

    public static Result  seccuss(Object data){
        Result result = new Result();
        result.setCode(200);
        result.setMessage("成功");
        result.setData(data);
        return result;
    }
    public static Result  errot(){
        Result result = new Result();
        result.setCode(500);
        result.setMessage("失败");
        return result;
    }




}
